﻿using StarryEdge.Core;
using StarryEdge.Core.Models;
using StarryEdge.WPF.Resources.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarryEdge.Menu.LogSystem.ViewModels
{
    public class RealTimeLogViewModel
    {
        public AsyncObservableCollection<LogInfoModel> LogList { get; set; }
        public AsyncObservableCollection<LogInfoModel> OperationLog { get; set; }
        public AsyncObservableCollection<MesLogModel> MesLog { get; set; }
        public RealTimeLogViewModel(IStarryEdgeLog starryEdgeLog)
        {
            LogList = (AsyncObservableCollection<LogInfoModel>)starryEdgeLog.GetRunLog();
            OperationLog = (AsyncObservableCollection<LogInfoModel>)starryEdgeLog.GetOperation();
            MesLog = (AsyncObservableCollection<MesLogModel>)starryEdgeLog.GetMesLog();
        }
    }
}
